import http from '@/utils/request.js'
// 注册
export function reg(params) {
        return http.post('user/reg', params)
}
// 登录
export function login(params) {
        return http.post('user/login', params)
}
// 发送验证码
export function sendSms(params) {
        return http.post('user/sendSms', params)
}

// 注销账号
export function delete_user(params) {
        return http.post('user/delete_user', params)
}

// 获取用户信息
export function getuserInfo(params) {
        return http.post('/user/getuserInfo', params)
}

// 修改用户信息
export function editUserInfo(params) {
        return http.post('/user/editUserInfo', params)
}
// 修改密码
export function updatePwd(params) {
        return http.post('/user/updatePwd', params)
}
// 忘记密码
export function forget(params) {
        return http.post('/user/forget', params)
}
